package com.xiaouyudeguang.common.annotation;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xiaouyudeguang.common.serializer.DecryptJsonSerializer;
import com.xiaouyudeguang.common.serializer.EncryptJsonDeserializer;

import java.lang.annotation.*;

@Documented
@JacksonAnnotationsInside
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@JsonDeserialize(using= EncryptJsonDeserializer.class)
@JsonSerialize(using= DecryptJsonSerializer.class)
public @interface JsonEncrypt {

}
